const appInst = getApp();

Component({
  data: {
    imgBaseUrl: appInst.globalData.imgBaseUrl
  },
  properties: {
    tabs: {
      type: Array,
      value: []
    },
    currentTab: {
      type: Number,
      value: 0
    }
  },
  methods: {
    handleTabClick(e) {
      this.triggerEvent('changetab', { tabIndex: e.currentTarget.dataset.tabIndex })
    }
  }
})